#!/bin/bash
#
# Copyright (c) 2013 SLL. <http://sll.se>
#
# This file is part of Invoice-Data.
#
#     Invoice-Data is free software: you can redistribute it and/or modify
#     it under the terms of the GNU Lesser General Public License as published by
#     the Free Software Foundation, either version 3 of the License, or
#     (at your option) any later version.
#
#     Invoice-Data is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#     GNU Lesser General Public License for more details.
#
#     You should have received a copy of the GNU Lesser General Public License
#     along with Invoice-Data.  If not, see <http://www.gnu.org/licenses/lgpl.txt>.
#

local="localhost:8080"
host=${2-$local}
curl -i -X "GET" -v -H "Accept: application/json" -H "Content-Type: application/json"  http://$host/invoice-data-app/admin/pricelists/${1}
